/*
 * @Description: 路由文件
 * @Date: 2024-02-02 11:03:45
 * @FilePath: \demod:\12electron\electron-demo\src\renderer\src\router\index.ts
 */
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  { path: "/", name: '/', redirect: '/home' },
  { path: "/home", name: 'home', component: () => import("@renderer/views/home/index.vue") },
  { path: "/serialport", component: () => import("@renderer/views/serialport/index.vue") },
  { path: "/modbus-serial", component: () => import("@renderer/views/serial-modbus/index.vue") },
  { path: "/webRTC", component: () => import("@renderer/views/webRTC/index.vue") },
  { path: "/webRTC-signaling", component: () => import("@renderer/views/webRTC-signaling/index.vue") },
];

export const router = createRouter({
  history: createWebHistory(),
  routes,
});
